package com.example.mvvm.viewmodel.fragment;

import android.app.Application;
import android.view.View;

import androidx.annotation.NonNull;

import com.example.mvvm.activity.VideoPlayerActivity;
import com.example.mvvm.base.BaseViewModel;
import com.example.mvvm.view.dialog.DialogHelper;

/**
 * Time: 5/6/2021 10:55
 * Author: TAO
 * Description:
 */
public class HomeViewModel extends BaseViewModel {
    public HomeViewModel(@NonNull Application application) {
        super(application);
    }


    public View.OnClickListener toVideoPlayer = v -> {
        //startActivity(v.getContext(), VideoPlayerActivity.class);
        String url = "<p></p ><h6 style=\"text-align: center;\"><span style=\"color: inherit; text-align: center;font-family:宋体, SimSun;font-size:16px\">测试-您还未进行“常享服”密码设置<br/></span><span style=\"color: inherit;font-family:宋体, SimSun;font-size:16px\">点击“确定”去设置</span></h6><p style=\"white-space: normal;\"><span style=\"font-family:宋体, SimSun;font-size:16px\"><span style=\"color: inherit; text-align: center;\"></span></span></p >";
        DialogHelper.getInstance(v.getContext()).setUrl(url).show();
    };
}
